package fr.insee.rome;

import fr.insee.rome.io.finder.RomeFinder;
import fr.insee.rome.io.finder.SlowFinder;
import fr.insee.rome.io.mots.CsvMotsBuilder;
import fr.insee.rome.string.norm.FileNormalizer;
import fr.insee.rome.string.norm.TxtFileNormalizer;


public class Run {

	public static void main(String[] args) throws Exception {
		
		/*
		RomeDownloader downloader = RomeFactory.getDownloader();
		downloader.download();
		*/
		
		/*
		StringComparator comparator = RomeFactory.getComparator();
		int distance = comparator.distance("PSYCHOLOGUE", "PSYCOLOGUE");
		System.out.println(distance);
		*/
		
		/*
		GenreGenerator generator = RomeFactory.getGenerator(GeneratorType.CONTROL);
		generator.generer("./txt/atomic-genres.csv", "./txt/control-genres.csv");
		*/
		
		/*
		RomeNormalizer normalizer = RomeFactory.getNormalizer();
		System.out.println(normalizer.normaliser("JOUEUSE DE TAMBOUR ET D'HARMONICA"));
		*/
		
		/*
		CsvMotsBuilder builder = new CsvMotsBuilder();
		builder.build("./txt/metiers.csv", "./txt/mots.csv");
		*/
		
		/*
		FileNormalizer normalizer = new TxtFileNormalizer();
		normalizer.normaliser("./txt/metiers.csv", "./txt/metiers-norm.txt");
		*/
		
		RomeFinder finder = new SlowFinder();
		System.out.println(finder.lookup("TECHNICIEN DE MAINTENANCE"));
	}
}
